//
//  SelectTableViewController.m
//  TheRoadAD
//
//  Created by baixue on 16/9/10.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "SelectTableViewController.h"//精选
#import "ChooseCell.h"

@interface SelectTableViewController ()

@end


#define IMGPICT @[@"jingxuan1",@"jingxuan2",@"jingxuan3"]
@implementation SelectTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.tableView.showsVerticalScrollIndicator = NO;
    [self.tableView registerNib:[UINib nibWithNibName:@"ChooseCell" bundle:nil] forCellReuseIdentifier:@"ChooseCell"];
  
}

- (void)delayInSeconds:(CGFloat)delayInSeconds block:(dispatch_block_t) block
{
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC),  dispatch_get_main_queue(), block);
}

#pragma mark - Table view data source

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return _itemNum;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    ChooseCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ChooseCell"];
    if (indexPath.row == 0) {
        cell.xinlogo.hidden = NO;
    }
    
    cell.pictImg.image = [UIImage imageNamed:IMGPICT[indexPath.row]];
    //更多按钮
//    cell.BlockMore = ^(){
//        MorePicture *m = [[MorePicture alloc] init];
//        [self.navigationController pushViewController:m animated:YES];
//    };
//    
//    //详情
//    cell.BlockImage = ^(NSInteger tag){
//        ActivistTableViewController *a = [[ActivistTableViewController alloc]init];
//        [self.navigationController pushViewController:a animated:YES];
//    };
    return cell;
}




@end
